#ifndef _DIR_H
#define _DIR_H

#include <iostream>
#include <string>
#include <vector>

using namespace std;

class Dir{
public:
	Dir();
	vector<string> GetFiles(string path = ".",string fmt = "*.*",bool recursion = false);
	bool IsExist(const string &dirName,const string &path = ".");
	bool mkdir(const string &dirName,const string &path = ".");
	void show();
	void clear();
	string fileName(const string &fullName);
private:
	vector<string> fileList;
};


#endif
